import { Notify } from 'vant'



export function checkStatus(status: number, msg: string): void {
  switch (status) {
    case 400:
      Notify({ type: 'danger', message: `${msg}` });
      break
    case 401:
      Notify({ type: 'danger', message: '用户没有权限（令牌、用户名、密码错误）!' });
      break;
    default:
      Notify({ type: 'danger', message: `${msg}` });
      break;
  }
}
